<?php
class Computer {
    
    protected $_name = '联想120'; 
    protected function run() {
        print( '我是父类');
        
    }
    public $age=23;
    
    
}

class NoteBookComputer extends Computer { 
    public function getName() {
    print( $this->_name);
    
}

public function getRun() { print( $this->run());
}

}


$nbc=new NoteBookComputer();
print($nbc->age);

